URL API
REPL
で試した。
$ node
> new URL("/api/todos?completed=true", "
http://localhost:3000")
https://scrapbox.io/files/62f0dcb8ed74e8002244f81a.png